import request from '@/utils/request'
const fetchItems = (params = {}) => (
  request.get('/itemLists', { params })
)

const addItems = (params = {}) => (
  request.post('/addItems', params)
)

const delItem = (id) => (
  request.delete('/delItem', { params: { id } })
)
export {
  fetchItems,
  addItems,
  delItem
}
